package cn.i7baozh.starter.client.remote;

import cn.i7baozh.starter.client.remote.fallback.TestRemoteServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Title:
 * @Package
 * @Description:
 * @author: baoqi.zhang
 * @date:
 */
@Component
@FeignClient(value = "starter-service", contextId = "starter2")
public interface TestRemoteService2 {

    @PostMapping("/service/api/test/sayHi")
    String sayHi(@RequestParam(value = "name") String name);
}
